﻿# common variables
@coa_width = 768
@coa_height = 512
@canton_scale_cross_x = @[ ( 333 / coa_width ) + 0.001 ]
@canton_scale_cross_y = @[ ( 205 / coa_height ) + 0.001 ]
@canton_scale_sweden_x = @[ ( 255 / coa_width ) + 0.001 ]
@canton_scale_sweden_y = @[ ( 204 / coa_height ) + 0.001 ]
@canton_scale_norway_x = @[ ( 192 / coa_width ) + 0.001 ]
@canton_scale_norway_y = @[ ( 192 / coa_height ) + 0.001 ]
@canton_scale_denmark_x = @[ ( 220 / coa_width ) + 0.001 ]
@canton_scale_denmark_y = @[ ( 220 / coa_height ) + 0.001 ]
@third = @[1/3]

NEP = { # Nepal
	flag_definition = {
		coa = NEP_triangular # WB edit
		subject_canton = NEP
		allow_overlord_canton = yes			
		coa_with_overlord_canton = NEP_subject
		overlord_canton_offset = { 0 0.1 }
		overlord_canton_scale = { 0.4 0.4 }			
		priority = 1
	}
	flag_definition = {
		coa = NEP_subject
		subject_canton = NEP
		allow_overlord_canton = yes	
		overlord_canton_offset = { 0 0.1 }
		overlord_canton_scale = { 0.39 0.385 }			
		priority = 50
		trigger = { 
			coa_def_spanish_ensign_trigger = yes
		}
	}	
	
	# WB orignials
	
	flag_definition = {
		coa = NEP
		subject_canton = NEP
		allow_overlord_canton = yes			
		coa_with_overlord_canton = NEP_subject
		overlord_canton_offset = { 0 0.1 }
		overlord_canton_scale = { 0.4 0.4 }			
		priority = 5
		
		trigger = { 
			exists = scope:actor
			scope:actor = { has_variable = WB_NEP_use_vanilla_flag_var }
		}
	}
	
	flag_definition = {
		coa = NEP_triangular_modern
		subject_canton = NEP_border_modern
		allow_overlord_canton = yes			
		coa_with_overlord_canton = NEP_subject
		overlord_canton_offset = { 0 0.1 }
		overlord_canton_scale = { 0.4 0.4 }			
		priority = 6
		
		trigger = { 
			game_date >= 1930.1.1
		}
	}
	
	flag_definition = {
		coa = NEP_border_modern
		subject_canton = NEP_border_modern
		allow_overlord_canton = yes			
		coa_with_overlord_canton = NEP_subject
		overlord_canton_offset = { 0 0.1 }
		overlord_canton_scale = { 0.4 0.4 }			
		priority = 7
		
		trigger = { 
			exists = scope:actor
			scope:actor = { has_variable = WB_NEP_use_vanilla_flag_var }
			
			game_date >= 1930.1.1
		}
	}
	
	flag_definition = {
		coa = NEP_republic
		subject_canton = NEP_republic_border
		priority = 10
		coa_with_overlord_canton = NEP_subject
		overlord_canton_offset = { 0 0.1 }
		overlord_canton_scale = { 0.4 0.4 }	
		trigger = { 
			coa_def_republic_flag_trigger = yes
		}
	}	

	flag_definition = {
		coa = NEP_republic_border
		subject_canton = NEP_republic_border
		priority = 11
		coa_with_overlord_canton = NEP_subject
		overlord_canton_offset = { 0 0.1 }
		overlord_canton_scale = { 0.4 0.4 }	
		trigger = { 
			coa_def_republic_flag_trigger = yes
			
			exists = scope:actor
			scope:actor = { has_variable = WB_NEP_use_vanilla_flag_var }
		}
	}		

	flag_definition = {
		coa = NEP_communist
		subject_canton = NEP_communist
		priority = 1500
		trigger = { 
			coa_def_communist_flag_trigger = yes
		}
	}
}